<template>
    <div>
        <ul class="mui-table-view">
				<li class="mui-table-view-cell mui-media" v-for="item in list" :key=item.id>
					<router-link to="/home/newsInfo">
						<img class="mui-media-object mui-pull-left" :src="item.src1">
						<div class="mui-media-body">
							{{item.title}}
							<p class='mui-ellipsis'>
                                <span>发表时间：{{item.date|dateFormat}}</span>
                                <span>点击：0次</span>
                            </p>
						</div>
					</router-link>
				</li>
			</ul>
    </div>
</template>

<script>
export default{
	data(){
		return{
			id:'',
			title:'',
			date:'',
			src1:'',
			list:[
				{id:1,title:'新闻1',date:new Date(),src1:require("../../images/l1.jpg")},
				{id:2,title:'新闻2',date:new Date(),src1:require('../../images/l2.jpg')},
				{id:3,title:'新闻3',date:new Date(),src1:require('../../images/l3.jpg')},
				{id:4,title:'新闻4',date:new Date(),src1:require('../../images/menu1.png')},
				{id:5,title:'新闻5',date:new Date(),src1:require('../../images/menu2.png')},
				{id:6,title:'新闻6',date:new Date(),src1:require('../../images/menu3.png')},
				{id:7,title:'新闻7',date:new Date(),src1:require('../../images/menu4.png')},
				{id:8,title:'新闻8',date:new Date(),src1:require('../../images/menu5.png')},
				{id:9,title:'新闻9',date:new Date(),src1:require('../../images/menu6.png')},
				{id:10,title:'新闻10',date:new Date(),src1:require('../../images/l1.jpg')},
				{id:11,title:'新闻11',date:new Date(),src1:require('../../images/l3.jpg')}
			]
		}
	},
	methods:{

	},
}
</script>

<style lang='scss' scoped>
.mui-table-view{
    li{
        h1{font-size: 14px;}
        .mui-ellipsis{
            font-size: 12px;
            color: #226aff;
            display: flex;
            justify-content: space-between
        }
    }
}
</style>
